/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: Tool
 * Author:   周宏硕
 * Date:     2018/11/5 10:04
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.htwx.entity;

import java.util.List;

/**
 * @author 周宏硕
 * @create 2018/11/5
 * @since 1.0.0
 */
public class Tool {

    //处理图片集合
    public String Splicing(List<String> image){
    	String imageAddress = "";
    	if(image.size() > 1) {
    		imageAddress = image.get(0) + ",";
    	}else {
    		imageAddress = image.get(0);
    	}
        for(int i = 1;i < image.size();i++){
            if(i + 1 == image.size()){
                imageAddress += image.get(i) ;
            }else {
                imageAddress += image.get(i) + ",";
            }
        }
        return imageAddress;
    }



}
